<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>麦知网——学问有余，可为人师</title>

<!-- Bootstrap core CSS -->
<link href="../css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="../css/non-responsive.css" rel="stylesheet">
<link href="../css/font-awesome.min.css" rel="stylesheet">
<link href="../css/bootstrap-switch.css" rel="stylesheet">
<link href="../ico/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon"/>
    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="../../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->  
<link href="../css/home.css" rel="stylesheet">    
	<script src="../js/jquery.min.js"></script>
	<script src="../js/bootstrap.js"></script>
	<script src="../js/good.js"></script>
	<script src="../js/share.js"></script>
	<script src="../js/comment.js"></script>
	<script src="../js/message.js"></script>
	<script src="../js/logout.js"></script>
	<script src="../js/join.js"></script>
	<script src="../js/bootstrap-switch-2.js"></script>
	<script src="../js/bad.js"></script>
	<script type="text/javascript">
		$(function(){
			$(".control_img_width_for_js img").css("width","330px");
		});

		function larger(a){
			var wid=$("#news_image"+a).css("width");
			if(wid=="380px"){
				$("#news_image"+a).css("width","100%");
			}else{
				$("#news_image"+a).css("width","380px");
			}
		}
		function change()
		{
			//最好使用ico或cur格式的文件，分辨率最好是32×32
			//$("#news_image").css("cursor","url('../img/rd.jpg'),auto");
			//$("#news_image").css("cursor","url('../img/rd.jpg'),default");
			$(".news_image").css("cursor","pointer");
		}
		function pageChange(num,page)
		{
			//$(".li_li").attr("class","li_li");
			//$("#li_"+num).attr("class","li_li active");
			
			//$("#hidden").val(num);
			window.location.href="?page"+num+"="+page+"&tab="+num;
		}


		var xmlHttp; 
		function createXMLRequest(){
			if(window.ActiveXObject){
				xmlHttp=new ActiveXObject("Microsoft.XMLHttp");
			} else if(window.XMLHttpRequest){
				xmlHttp=new XMLHttpRequest();
			}
		}
		
		function add(u_id){   
			createXMLRequest();                       
			var url="/users/add/?id="+u_id;
			xmlHttp.open("GET",url);
			
			xmlHttp.onreadystatechange=function(){
				if(xmlHttp.readyState==4 && xmlHttp.status==200){
					document.getElementById('add'+u_id).style.display="none";
					document.getElementById('abord'+u_id).style.display="inline";
				}
			};
			xmlHttp.send(); 
		}
	</script>
</head>
<body>
	{% include 'public/common/header.html' %}
<div class="container" style="margin-top:45px">
		<div class="row">
<!-- 左侧div -->
			<div class="col-xs-4">
<!--我的主页 个人名片  --><form id="frm"><input type="hidden" id="hidden"></form>
				{% ifequal identity '1' %}
				<div class="person">
					<div>
						<div class="person_img pull-left"><img src="{{userinfo.domain}}//{{userinfo.img}}" width="100%"/></div>
						<div class="pull-left person_intro">
							<div class="intro">
								<span><a href="#"><font size="3"><b>{{userinfo.user_name|capfirst}}</b></font></a></span>
								{% ifequal purview '1' %}<i class="icon-check" title="认证用户" style="margin-left:7px"></i>{% endifequal %}{% ifequal purview '2' %}<i class="icon-home" title="企业用户" style="margin-left:7px"></i>{% endifequal %}
							</div>
							<div class="intro sign">
								<font size="1"><i class="icon-pencil"></i></font>
								<font size="1" title="{{userinfo.sign}}"><i>{{userinfo.sign}}</i></font>
							</div>	
							<div class="intro" style="margin-top:5px">
								<span class="span_span pull-left"><a href="{% url 'users:setting' %}"><i class="icon-cogs"></i> 编辑我的资料</a></span>
								<div class="clearfix"></div>
							</div>
							<div class="intro2">
								<div class="inintro2 pull-left">
									<div><a href="{% url 'users:managefriend' %}"><strong>关注</strong></a></div>
									<div><a href="{% url 'users:managefriend' %}">{{userinfo.focus_con}}</a></div>
								</div>
								<div class="inintro2 pull-left">
									<div><a href="{% url 'users:managefriend' %}"><strong>粉丝</strong></a></div>
									<div><a href="{% url 'users:managefriend' %}">{{userinfo.fan_con}}</a></div>
								</div>
								<div class="inintro3 pull-left">
									<div><a href="{% url 'users:managegroup' %}"><strong>小组</strong></a></div>
									<div><a href="{% url 'users:managegroup' %}">{{userinfo.follow_group_con}}</a></div>
								</div>
								<div class="clearfix"></div>
							</div>					
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
				{% endifequal %}
<!--我的主页 个人名片  结束-->
				{% ifequal identity '0' %}
<!--他的主页 个人名片  -->
				<div class="person">
					<div>
						<div class="person_img pull-left"><img src="{{userinfo.domain}}/{{userinfo.img}}" width="100%"/></div>
						<div class="pull-left person_intro">
							<div class="intro">
								<span class="pull-left"><a href="#"><font size="3"><b>{{userinfo.user_name|capfirst}}</b></font></a></span>
								{% ifequal purview '1' %}<i class="icon-check" title="认证用户" style="margin-left:7px"></i>{% endifequal %}{% ifequal purview '2' %}<i class="icon-home" title="企业用户" style="margin-left:7px"></i>{% endifequal %}
								<span class="pull-right"><a href="javascript:void(0)"  data-toggle="modal" data-target="#myModal{{userinfo.user_id}}"><i class="icon-envelope"></i></a></span>
								<div class="clearfix"></div>
							</div>
							<div class="intro">
								
								<div class="switchDiv">
									<div class="switch switch-small" data-on="info" data-off="NO">

								{% ifequal btn 0 %}
										<input type="checkbox" checked="checked" onchange="add({{userinfo.user_id}})"/> 
									
								{% endifequal %}
								{% ifequal btn 1 %}
								
										<input type="checkbox" onchange="add({{userinfo.user_id}})"/> 
								{% endifequal %}
									</div>
								</div>
								
								<div class="modal fade" id="myModal{{userinfo.user_id}}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
								  <div class="modal-dialog">
								    <div class="modal-content">
								      <div class="modal-header">
								        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
								        <h4 class="modal-title">发送私信给{{userinfo.user_name}}</h4>
								      </div>
								      <div class="modal-body">
								        <textarea class="form-control" id="message{{userinfo.user_id}}" style="height:120px"></textarea>
								      </div>
								      <div class="modal-footer">
								      	
								        <button type="button" onclick="connected({{userinfo.user_id}})" class="btn btn-primary">发送</button>
								      </div>
								    </div><!-- /.modal-content -->
								  </div><!-- /.modal-dialog -->
								</div><!-- /.modal -->
								<div class="clearfix"></div>
							</div>
							<div class="intro sign">
								<font size="1"><i class="icon-pencil"></i></font>
								<font size="1" title="{{userinfo.sign}}"><i>{{userinfo.sign}}</i></font>
							</div>	
							<div class="intro2">
								<div class="inintro2 pull-left">
									<div><strong>关注</strong></div>
									<div>{{userinfo.focus_con}}</div>
								</div>
								<div class="inintro2 pull-left">
									<div><strong>粉丝</strong></div>
									<div>{{userinfo.fan_con}}</div>
								</div>
								<div class="inintro3 pull-left">
									<div><strong>小组</strong></div>
									<div>{{userinfo.follow_group_con}}</div>
								</div>
								<div class="clearfix"></div>
							</div>					
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
				<!-- 举报 -->
				<div style="width:100%;margin-top:10px;">
					<button type="button" class="btn btn-danger btn-small" style="
					width:100%;" data-toggle="modal" data-target="#bad_any">举报此用户</button>

					<div class="modal fade" id="bad_any" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
					  <div class="modal-dialog">
					    <div class="modal-content">
					      <div class="modal-header">
					        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					        <h4 class="modal-title">举报原因</h4>
					      </div>
					      <div class="modal-body">
					        <textarea class="form-control" id="bad_content" style="height:120px;resize:none;"></textarea>
					      </div>
					      <div class="modal-footer">
					      	
					        <button type="button" onclick="bad_send({{u_id}},1);" class="btn btn-primary">举报</button>
					      </div>
					    </div><!-- /.modal-content -->
					  </div><!-- /.modal-dialog -->
					</div><!-- /.modal -->
				</div>
<!-- 举报结束 -->
				{% endifequal %}
<!--他的主页 个人名片  结束-->
<!--我的主页 管理我的课程、小组、悬赏 -->
			{% ifequal identity '1' %}
				<div class="manage">
					<div class="a_manage"><a href="{% url 'users:managegroup' %}"><strong>>>管理我的小组</strong></a></div>
					<div class="a_manage"><a href="{% url 'users:managecourse' %}"><strong>>>管理我的课程</strong></a></div>
					<div class="a_manage"><a href="{% url 'users:managereward' %}"><strong>>>管理我的悬赏</strong></a></div>
					<div class="a_manage"><a href="{% url 'users:managefriend' %}"><strong>>>管理我的好友</strong></a></div>
				</div>
			{% endifequal %}
<!-- 他的主页 个人介绍 -->
			{% ifequal identity '0' %}
				<div class="person_introduce">
					<div><strong>个人介绍</strong></div>
					<div class="person_intro_content">
						{{userinfo.introduce}}
					</div>
				</div>
			{% endifequal %}
<!-- 他的主页 个人介绍 结束处-->
<!-- 推荐课程 
				<div class="my">
					<div class="interest_course_title"><strong>{% ifequal userinfo.sex 1 %}他{% else %}她{% endifequal %}的小组</strong></div>

					<div class="interest_course">
一条推荐课程 循环开始处 
						<div class="a_course1 pull-left">
							<div><a href=""><img src="../img/rd.jpg" width="100%"/></a></div>
							<div class="course" style=""><a href=""><strong>小组名</strong></a></div>
							<div class="course">1263关注</div>
						</div>
一条推荐课程 循环结束处 
						<div class="clearfix"></div>
					</div>
				</div>
-->
<!-- 推荐课程 结束处-->
<!-- 推荐好友 -->
				<div class="my">
					<div><b>用户推荐</b></div>
<!-- 一个推荐的好友 循环开始处 -->
					<div class="a_guy">
						{% for u in guy %}
						<div class="pull-left person_avatar"><a href="{% url 'users:home' u.4 %}"><img src="{{u.5}}/{{u.3}}" width="100%"/></a></div>
						<div class="pull-left person_content">
							<div><span class="person_name"><a href="{% url 'users:home' u.4 %}"><b>{{u.0}}</b></a></span><span class="focus"><button id="add{{u.4}}" type="button" onclick="add({{u.4}})" class="btn btn-success btn-xs">关注</button><span  class="focus" id="abord{{u.4}}" style="display:none" >已关注</span></span></div>
							<div class="show_person"><a href="{% url 'users:home' u.4 %}"><b>查看资料</b></a></div>
						</div>
						<div class="clearfix"></div>
						{% endfor %}
					</div>
<!-- 一个推荐的好友 循环结束处 -->
				</div>
<!-- 推荐好友 结束处-->
<!-- 一个广告位 -->
				<div class="ad">
					<img src="../img/ad.jpg" width="100%" height="200px">
				</div>
			</div>
<!-- 右侧div -->
			<div class="col-xs-8">
				<div>
					<div class="newsDiv">
						<div class="in_newsDiv"> 
							<ul class="nav nav-tabs" id="myTab">
								{% ifequal tab 1 %}
							  <li id="li_1" class="li_li active"><a href="#dongtai" data-toggle="tab">动态</a></li>
							  {% else %}
							   <li id="li_1" class="li_li"><a href="#dongtai" data-toggle="tab">动态</a></li>
							  {% endifequal %}
							  {% ifequal tab 2 %}
							  <li id="li_2" class="li_li active"><a href="#xiaozu" data-toggle="tab">{{userinfo.user_name|capfirst}}的小组</a></li>
							  {% else %}
							  <li id="li_2" class="li_li"><a href="#xiaozu" data-toggle="tab">{{userinfo.user_name|capfirst}}的小组</a></li>
							  {% endifequal %}
							  {% ifequal tab 3 %}
							  <li id="li_3" class="li_li active"><a href="#kecheng" data-toggle="tab">发布的课程</a></li>
							  {% else %}
							  <li id="li_3" class="li_li"><a href="#kecheng" data-toggle="tab">发布的课程</a></li>
							  {% endifequal %}
<!-- 只有他的主页有 开始处 -->
								{% ifequal tab 4 %}
							  <li id="li_4" class="li_li active"><a href="#xuanshang" data-toggle="tab">{{userinfo.user_name|capfirst}}的悬赏</a></li>
							  {% else %}
							  <li id="li_4" class="li_li"><a href="#xuanshang" data-toggle="tab">{{userinfo.user_name|capfirst}}的悬赏</a></li>
							  {% endifequal %}
							  <li id="li_5" class="li_li"><a href="#xinxi" data-toggle="tab">详细信息</a></li>
<!-- 只有他的主页有结束处 -->
							</ul>
							
							<div class="tab-content">
<!-- 动态 标签第一签 -->			{% ifequal tab 1 %}
								<div class="tab-pane active" id="dongtai">
								{% else %}
								<div class="tab-pane" id="dongtai">
								{% endifequal %}
<!-- 一条动态 循环开始处 -->
							{% for i in news %}
									<div class="a_dongtai">
										<div class="dongtai_img pull-left">
											<img src="{{userinfo.domain}}/{{userinfo.img}}" width="100%"/>
										</div>
										<div class="dongtai_content pull-left">
											<div class="triangle pull-left"></div>
											<div class="dongtai_content1 pull-left">
											<div class="time">{{i.3|date:"Y-m-d H:i:s"}}</div>
											<div class="news_cont">
												<div>{% autoescape off %}{{i.2}}{% endautoescape %}</div>
												{% if i.1 %}
												<div class="control_img_width_for_js">
													<img src="{{i.4}}"/>
												</div>
												{% endif %}
												<div class="news_act">
													
													<span class="span_news"><a href="javascript:void(0)" onclick="clickgood({{i.8}})"><i class="icon-thumbs-up"></i> <span id="good{{i.8}}">{{i.5}}</span></a></span>
													<span class="span_news"><a href="javascript:void(0)" data-toggle="modal" data-target="#shareThis{{i.8}}" title="分享到我的新鲜事"><i class="icon-share-alt"></i> <span id="share{{i.8}}">{{i.6}}</span></a></span>
													<span class="span_news"><a href="javascript:void(0)" id="redirect{{i.8}}" onclick="comment({{i.8}});"><i class="icon-comment"></i> <span id="review{{i.8}}">{{i.7}}</span></a>
													</span>
													
												</div>
<!--在这个div里加入评论-->
										<div>
<!--评论 点击出现-->
								<div id="comment{{i.8}}" class="comment" style="display:none;">
									<div class="comment_act">
										<div class="comment_act1 pull-left">
											<textarea class="comment_act1_tarea" id="comment_tarea{{i.8}}"></textarea>
										</div>
										<div id="coAndcocomment{{i.8}}" class="comment_act2 pull-left">
											<button type="button" class="btn btn-info comment_act_btn" onclick="comment_t({{i.8}});">评论</button>
										</div>
										<div class="clearfix"></div>
									</div>
<!-- 某条新鲜事的评论 循环开始处 -->
									<div class="a_comment">
										<div id="first_commend{{i.8}}">
											{% if i.16 %}
											<div class="comment_a_style">
												<div class="pull-left comment_img">
													<a href="{% url 'users:home' i.21 %}"><img src="{{i.22}}/{{i.16}}" class="img-circle" width="100%"></a>
												</div>
												<div class="pull-left comment_content">
													<div>
														<div class="pull-left">
															<a href="{% url 'users:home' i.21 %}"><b>{{i.15}}</b></a>
														</div>
														<div class="pull-right comment_time">
															{{i.19|date:"Y-m-d H:i:s"}}
														</div>
														<div class="clearfix"></div>
													</div>
													<div class="comment_concontent">
														{{i.14}}
													</div>
													<div class="pull-right">
														<span class="span_news"><a href="javascript:void(0)" onclick="cogood({{i.13}})"><i class="icon-thumbs-up"></i> <span id="cogood{{i.13}}">{{i.18}}</span></a></span>
														<span class="span_news"><a href="javascript:void(0)" onclick="cocomment({{i.13}},'{{i.15}}',{{i.17}},{{i.8}});"><i class="icon-comment"></i> <span id="cocomment_span{{i.13}}">{{i.20}}</a></span></span>
													</div>
												</div>
												<div class="clearfix"></div>
											</div>
											{% endif %}
										</div>
<!-- 回复的回复 加入的div 
										<div>
											<div id="cocomment{{i.13}}" class="cocomment_act" style="display:none;">
												<div class="comment_act1 pull-left">
													<textarea id="cocomment_act1_tarea{{i.8}}" class="comment_act1_tarea"></textarea>
												</div>
												<div class="comment_act2 pull-left">
													<button type="button" class="btn btn-info comment_act_btn">评论</button>
												</div>
												<div class="clearfix"></div>
											</div>
										</div>-->
										
										<div style="margin-top:5px;" id="see_more_re{{i.8}}"> 
											{% if i.16 %}
											<a href="javascript:void(0)" onclick="get_more_re({{i.8}});">查看更多评论</a>
											{% endif %}
										</div>
										
									</div>
									
<!-- 某条新鲜事的评论 循环结束处 -->
								</div>
							</div>
												</div>
												<div class="modal fade" id="shareThis{{i.8}}" tabindex="-1" role="dialog" aria-hidden="true">
												  <div class="modal-dialog">
												    <div class="modal-content">
												      <div class="modal-header">
												        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
												        <h4 class="modal-title">分享到我的新鲜事</h4>
												      </div>
												      <div class="modal-body">
												      	<div class="content" style="margin-bottom:20px"><textarea id="sharemsg{{i.8}}" class="form-control">//{{i.0|capfirst}}:{{i.2}}</textarea></div>
												        {% if i.img %}
														<img id="larger{{i.8}}" class="larger" src="../news/{{i.1}}" width="320" />
														{% endif %}
												      </div>
												      <div class="modal-footer">
												        <button type="button" onclick="shareTo({{i.8}})" class="btn btn-primary">分享</button>
												      </div>
												    </div><!-- /.modal-content -->
												  </div><!-- /.modal-dialog -->
												</div><!-- /.modal -->
											</div>
											<div class="clearfix"></div>

										</div>
										<div class="clearfix"></div>
									</div>
							{% endfor %}
<!-- 一条动态 循环结束处 -->			
									<div>
										<ul class="pager">
										{% if news.has_previous %}
										  <li><a href="javascript:void(0)" onclick="pageChange(1,{{ news.previous_page_number }});">&larr;上一页</a></li>
										{% endif %}
										共 {{ news.paginator.num_pages }} 页  第 {{ news.number }} 页.
										{% if news.has_next %}
										  <li><a href="javascript:void(0)" onclick="pageChange(1,{{ news.next_page_number }},1);">下一页&rarr;</a></li>
										{% endif %}
										</ul>
									</div>
								</div>
<!-- XX的小组 标签第二签 -->
								{% ifequal tab 2 %}
								<div class="tab-pane active" id="xiaozu">
								{% else %}
								<div class="tab-pane" id="xiaozu">
								{% endifequal %}
									<div class="join_groups">
										<div class="join_content">
<!-- 他加入的小组  幻灯片开始处 每页七个 -->		
											<div class="join_title">
												<span class="pull-left"><b>{% ifequal userinfo.sex 1 %}他{% else %}她{% endifequal %}加入的小组</b></span>
												<!--<span class="pull-right home_all_join_groups"><a href="">查看更多</a></span>-->
												<div class="clearfix"></div>
											</div>
											<div class="bs-example" style="width:100%;">
										      <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
										        <div class="carousel-inner">
										          <div class="item active">
<!-- 一个小组 幻灯片  第一页   共循环6个 循环开始处-->{% for f in follow_group_set1 %}
										          	<div class="pull-left join_a_group">
										          		<div class="includegroups">
															<a href="{% url 'groups:thegroup' f.0 %}" title="{{f.3}}"><img src="{{f.1}}/{{f.2}}" width="100%"/></a>
														</div>
													</div>
<!-- 一个小组 幻灯片    第一页  共循环6个 循环结束处-->{% endfor %}
													<div class="clearfix"></div>
										          </div>
										          {% if follow_group_set2 %}
										          <div class="item">
<!-- 一个小组 幻灯片  第二页   共循环6个 循环开始处-->{% for f in follow_group_set2 %}
										          	<div class="pull-left join_a_group">
										          		<div class="includegroups">
															<a href="{% url 'groups:thegroup' f.0 %}" title="{{f.3}}"><img src="{{f.1}}/{{f.2}}" width="100%"/></a>
														</div>
													</div>
<!-- 一个小组 幻灯片  第二页   共循环6个 循环结束处-->	{% endfor %}												
													<div class="clearfix"></div>
												  </div>
												  {% endif %}
										        </div>
										        <a class="left carousel-control" href="#carousel-example-generic" data-slide="prev">
										          <span class="glyphicon glyphicon-chevron-left"></span>
										        </a>
										        <a class="right carousel-control" href="#carousel-example-generic" data-slide="next">
										          <span class="glyphicon glyphicon-chevron-right"></span>
										        </a>
										      </div>
										    </div>
<!--  他加入的小组  幻灯片结束处 -->
												
										</div>
										<div class="clearfix"></div>
									</div>
									<div class="create_group">
										<div class="create_title"><b>{% ifequal userinfo.sex 1 %}他{% else %}她{% endifequal %}创建的小组</b></div>
<!-- 他创建的小组 循环开始处 -->
									{% for i in mygroup %}
										<div class="a_group">
											<div>
												<div class="group_img pull-left">
													<a href="{% url 'groups:thegroup' i.5 %}"><img src="{{i.1}}/{{i.2}}" width="100%"/></a>
												</div>
												<div class="group_intro pull-left">
													<div>
														<div class="pull-left">
															<a href="{% url 'groups:thegroup' i.5 %}"><b>{{i.0}}</b></a>
														</div>
														{% ifequal identity '0' %}
														<div class="btn_join_group pull-left">
															{% ifequal i.4 '1' %}
															<div class="switchDiv">
																<div class="switch switch-small" data-on="info" data-off="NO">
																	<input type="checkbox" checked="checked" id="join" onchange="join({{i.5}},1)"/> 
																</div>
															</div>
															{% else %}
															<div class="switchDiv">
																<div class="switch switch-small" data-on="info" data-off="NO">
																	<input type="checkbox" id="left" onchange="join({{i.5}},2)"/> 
																</div>
															</div>
															{% endifequal %}
														</div>
														{% endifequal %}
														<div class="clearfix"></div>
													</div>
													<div class="group_introduce">
														{{i.3}}
													</div>
												</div>
												<div class="clearfix"></div>
											</div>
											<div class="home_topics">
												<div class="topdirection"></div>
												<div class="topic">
<!-- 一个话题 循环开始处 -->						{% for t in i.6 %}
													<div class="a_topic">
														<div>
															<div class="a_topic_title pull-left"><a href="{% url 'groups:thetopic' t.0 %}"><b>{{t.1}}</b></a></div>
															<div class="a_topic_time pull-right">{{t.3|date:"Y-m-d H:i:s"}}</div>
															<div class="clearfix"></div>
														</div>
														<div class="a_topic_content">
															<i>{{t.2}}</i>
														</div>
														<div class="hr"></div>
													</div>
<!-- 一个话题 循环结束处 -->						{% endfor %}
													<div class="topic_more"><a href="{% url 'groups:thegroup' i.5 %}">>>更多</a></div>
												</div>
											</div>
										</div>
									{% endfor %}
<!-- 他创建的小组 循环结束处 -->
										<div>
											<ul class="pager">
											{% if mygroup.has_previous %}
											  <li><a href="javascript:void(0)" onclick="pageChange(2,{{ mygroup.previous_page_number }});">&larr;上一页</a></li>
											{% endif %}
											共 {{ mygroup.paginator.num_pages }} 页  第 {{ mygroup.number }} 页.
											{% if mygroup.has_next %}
											  <li><a href="javascript:void(0)" onclick="pageChange(2,{{ mygroup.next_page_number }});">下一页&rarr;</a></li>
											{% endif %}
											</ul>
										</div>
									</div>
								</div>
<!-- 发布的课程 标签第三签 -->
								{% ifequal tab 3 %}
								<div class="tab-pane active" id="kecheng">
								{% else %}
								<div class="tab-pane" id="kecheng">
								{% endifequal %}
									<div class="course_publish">
										<!--<div>
											<select id="sel" onChange="chg()">
												<option value="1">按人气排序</option>
												<option value="2">按时间排序</option>
												<option value="3">按价格排序</option>
											</select>
										</div>-->
<!-- 一个课程 循环开始处 -->{% for c in couses %}
										<div class="a_course">
											<div>
												<div class="a_course_img pull-left">
													<div><a href="{% url 'courses:thecourse' c.0 %}"><img src="{{c.2}}/{{c.3}}" width="100%"/></a></div>
													<div class="course_title"><a href="{% url 'courses:thecourse' c.0 %}">{{c.1}}</a></div>
												</div>
												<div class="a_course_intro pull-left">
													<div>
														<div class="course_score pull-left">
															<span>
<!-- 用星星评价的地方    第一个span是黄色星星  第二个span是空心星星  分别循环   -->
														{% for s in c.8 %}
																<span class="yellow_star">&#9733</span>
														{% endfor %}
														{% for s in c.9 %}
														<span>☆</span>
														{% endfor %}
<!-- 用星星评价的地方 结束 -->							
															</span>
															<span class="score_con"><b>（{{c.6}}人评价）</b></span>
														</div>
														<div class="pull-right">
															<span style="margin-right:20px;"><b>￥{{c.5}}</b></span>
															{% ifequal c.10 0 %}
															<span><button type="button" class="btn btn-warning btn-xs"><b>购&nbsp;&nbsp;买</b></button></span>
															{% endifequal %}
															{% ifequal c.7 0 %}
															<span><button type="button" class="btn btn-userinfo btn-xs"><b>收&nbsp;&nbsp;藏</b></button></span>
															{% endifequal %}
														</div>
														<div class="clearfix"></div>
													</div>
													<div class="a_course_intro_content">
														<i>
															{{c.4}}
														</i>
													</div>
												</div>
												<div class="clearfix"></div>
											</div>
										</div>
<!-- 一个课程 循环结束处 -->{% endfor %}
										<div>
											<ul class="pager">
											{% if couses.has_previous %}
											  <li><a href="javascript:void(0)" onclick="pageChange(3,{{ couses.previous_page_number }});">&larr;上一页</a></li>
											{% endif %}
											共 {{ couses.paginator.num_pages }} 页  第 {{ couses.number }} 页.
											{% if couses.has_next %}
											  <li><a href="javascript:void(0)" onclick="pageChange(3,{{ couses.next_page_number }});">下一页&rarr;</a></li>
											{% endif %}
											</ul>
										</div>
									</div>
								</div>
<!-- 只有他的主页有 开始处 -->
<!-- XX的悬赏  标签第四签-->
								{% ifequal tab 4 %}
								<div class="tab-pane active" id="xuanshang">
								{% else %}
								<div class="tab-pane" id="xuanshang">
								{% endifequal %}
									<div class="rewards">
										<!--<div>
											<select id="sel" onChange="chg2()">
												<option value="1">未过期</option>
												<option value="2">已过期</option>
											</select>
										</div>-->
										<div class="all_rewards">
<!-- 一个悬赏 循环开始处 -->						{% for r in reward %}				
											<div class="a_reward pull-left">
												<div class="a_a_reward">
													<div class="a_reward1">
														<div class="a_reward11 pull-left">
															<div class="reward_img"><img src="{{r.5}}/{{r.6}}" width="100%" class="img-circle"></div>
														</div>
														<div class="a_reward12 pull-left">
															<div class="reward_type pull-right"><b>#{{r.4}}</b></div>
															<div class="clearfix"></div>
															<div class="reward_name">
																{{r.1}}
															</div>
															<div class="reward_price"><b>￥{{r.2}}</b></div>
														</div>
														<div class="clearfix"></div>
													</div>
													<div class="a_reward2">
														<div class="topdirection"></div>
													</div>
													<div class="a_reward3">
														<div style="height:150px;">{{r.3}}</div>
														<div class="reward_in pull-right"><a href="{% url 'rewards:thereward' r.0 %}"><b>查看详情</b></a></div>
														<div class="clearfix"></div>
													</div>
												</div>
											</div>
<!-- 一个悬赏 循环结束处 -->						{% endfor %}
											<div class="clearfix"></div>
											<div>
												<ul class="pager">
												{% if reward.has_previous %}
												  <li><a href="javascript:void(0)" onclick="pageChange(4,{{ reward.previous_page_number }});">&larr;上一页</a></li>
												{% endif %}
												共 {{ reward.paginator.num_pages }} 页  第 {{ reward.number }} 页.
												{% if reward.has_next %}
												  <li><a href="javascript:void(0)" onclick="pageChange(4,{{ reward.next_page_number }});">下一页&rarr;</a></li>
												{% endif %}
												</ul>
											</div>
										</div>
									</div>
								</div>
<!-- 详细信息  标签第五签 -->
								{% ifequal tab 5 %}
								<div class="tab-pane introduce active" id="xinxi">
								{% else %}
								<div class="tab-pane introduce" id="xinxi">
								{% endifequal %}
									<div>
										<div>
											<div class="intro_left pull-left"><span class="glyphicon glyphicon-user"></span> 昵称</div>
											<div class="intro_right pull-left">{{userinfo.user_name|capfirst}}</div>
											<div class="clearfix"></div>
										</div>
										<div>
											<div class="intro_left pull-left"><span class="glyphicon glyphicon-map-marker"></span> 所在城市</div>
											<div class="intro_right pull-left">{{userinfo.position}}</div>
											<div class="clearfix"></div>
										</div>
										<div>
											<div class="intro_left pull-left"><span class="glyphicon glyphicon-briefcase"></span> 职业</div>
											<div class="intro_right pull-left">{{userinfo.work}}</div>
											<div class="clearfix"></div>
										</div>
										<div>
											<div class="intro_left pull-left"><span class="glyphicon glyphicon-calendar"></span> 生日</div>
											<div class="intro_right pull-left">{{userinfo.birthday}}</div>
											<div class="clearfix"></div>
										</div>
										<div>
											<div class="intro_left pull-left"><span class="glyphicon glyphicon-globe"></span> 星座</div>
											<div class="intro_right pull-left">{{userinfo.constellation}}</div>
											<div class="clearfix"></div>
										</div>
										<div>
											<div class="intro_left pull-left"><span class="glyphicon glyphicon-adjust"></span> 性别</div>
											<div class="intro_right pull-left">{% ifequal userinfo.sex 1 %}男{% else %}女{% endifequal %}</div>
											<div class="clearfix"></div>
										</div>
										<div>
											<div class="intro_left pull-left"><span class="glyphicon glyphicon-pencil"></span> 签名</div>
											<div class="intro_right pull-left">{{userinfo.sign}}</div>
											<div class="clearfix"></div>
										</div>

									</div>
								</div>
<!-- 只有他的主页有结束处 -->
							</div>

						</div>
					</div>
<!-- 一条新鲜事 循环结束处 -->
				</div>
			</div>
		</div>
	</div>
	
	
	
	

</body>
</html>